#include "tire.h"

void Tire::setType(const std::string& type) {
    this->type = type;
}

void Tire::setSize(const std::string& size) {
    this->size = size;
}

void Tire::print() const {
    std::cout << "轮胎类型: " << type << std::endl;
    std::cout << "轮胎尺寸: " << size << std::endl;
}

void Tire::save(std::ofstream& out) const {
    out << "轮胎类型: " << type << std::endl;
    out << "轮胎尺寸: " << size << std::endl;
}